for x in range(21):
    for y in range((100 - 5 * x) // 3 + 1):
        z = 100 - x - y
        if z % 3 == 0 and (5 * x + 3 * y + z // 3 == 100):
            print(f'公鸡{x}只，母鸡{y}只，小鸡{z}只')